#ifndef COMMAND_H
#define COMMAND_H

namespace protocal{
enum SRVCOMMAND{
    SRV_LOGINANS = 0,
    SRV_BROADCAST,
    SRV_DRIVER_ANS,
    SRV_ORDER_SUCCESS,
    SRV_CARPOS,
    SRV_CLIENTPOS,
    SRV_GET_CLIENT_ON_MESSAGE,
    SRV_GET_CLIENT_OFF_MESSAGE};

enum CLICOMMAND{
    CLI_LOGIN = 0,
    CLI_BOOK,
    CLI_CHOOSE_CAR,
    CLI_ABANDON_BOOK, // customer do not want to make the order. it happens before order generated.
    CLI_DISCARD_ORDER,
    CLI_CLIENTPOS,
    CLI_GET_ON_CAR, // customer has got on the car
    CLI_GET_OFF_CAR};

enum CARCOMMAND{
    CAR_LOGIN = 0,
    CAR_READY,
    CAR_CHOOSE_CLIENT,
    CAR_CARPOS,
    CAR_DISCARD_ORDER,
    CAR_GET_ON_CAR,
    CAR_SEMI_READY,
    CAR_GET_OFF_CAR};
}




#endif // COMMAND_H
